<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <!-- 导入login.css -->
    <link rel="stylesheet" href="/assets/css/login.css">
</head>
<body>
    <div class="login-container">
        <!-- 左侧图片区 -->
        <div class="left-bg"></div>
        <!-- 右侧操作区 flex-->
        <div class="right-warp">
            <div class="box">
                <!-- 登录区域 -->
                <div class="login-content">
                    <form class="layui-form" id="login-form" lay-filter="login-form">
                        <h2>登录</h2>
                        <!-- 用户名 -->
                        <div class="layui-form-item">
                            <!-- 图标 -->
                            <i class="layui-icon layui-icon-username"></i>
                            <!-- 输入框 -->
                            <input 
                                class="layui-input"
                                type="text" 
                                name="username"
                                placeholder="请输入用户名"
                                autocomplete="off"
                                lay-verify="required|username"
                            >
                        </div>
                        <!-- 密码框 -->
                        <div class="layui-form-item">
                            <!-- 图标 -->
                            <i class="layui-icon layui-icon-password"></i>
                            <!-- 输入框 -->
                            <input 
                                class="layui-input"
                                type="password" 
                                name="password"
                                placeholder="请输入密码"
                                lay-verify="required|password"
                            >
                        </div>
                        <!-- 按钮 -->
                        <div class="layui-form-item">
                            <button lay-submit class="layui-btn layui-btn-fluid layui-btn-normal">登录</button>
                        </div>
                        <!-- 去注册 -->
                        <div class="layui-form-item item-link">
                            <a href="#" id="go-reg">去注册账号</a>
                        </div>
                    </form>
                </div>
                <!-- 注册区域 -->
                <div class="reg-content">
                    <!-- lay-filter 帮助layui 选择表单 -->
                    <form class="layui-form" id="reg-form" lay-filter="reg-form">
                        <h2>注册</h2>
                        <!-- 用户名 -->
                        <div class="layui-form-item">
                            <!-- 图标 -->
                            <i class="layui-icon layui-icon-username"></i>
                            <!-- 输入框  lay-verify添加验证规则-->
                            <input 
                                class="layui-input"
                                type="text" 
                                name="username"
                                placeholder="请输入用户名"
                                autocomplete="off"
                                required
                                lay-verify="required|username"
                            >
                        </div>
                        <!-- 密码框 -->
                        <div class="layui-form-item">
                            <!-- 图标 -->
                            <i class="layui-icon layui-icon-password"></i>
                            <!-- 输入框 -->
                            <input 
                                class="layui-input"
                                type="password" 
                                name="password"
                                placeholder="请输入密码"
                                required
                                lay-verify="required|password"
                            >
                        </div>
                        <!-- 确认密码框 -->
                        <div class="layui-form-item">
                            <!-- 图标 -->
                            <i class="layui-icon layui-icon-password"></i>
                            <!-- 输入框 -->
                            <input 
                                class="layui-input"
                                type="password" 
                                name="rpPassword"
                                placeholder="请再次输入密码"
                                required
                                lay-verify="required|password|rpPassword"
                            >
                        </div>
                        <!-- 按钮 -->
                        <div class="layui-form-item">
                            <!-- lay-submit触发验证 -->
                            <button lay-submit class="layui-btn layui-btn-fluid layui-btn-normal">注册</button>
                        </div>
                        <!-- 去注册 -->
                        <div class="layui-form-item item-link">
                            <a href="#" id="go-login">去登录</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- 导入 layui JS -->
    <script src="/assets/lib/layui/layui.all.js"></script>
    <!-- 导入 jQuery -->
    <script src="/assets/lib/jquery.js"></script>
    <!-- 导入 BaseURL -->
    <script src="/assets/js/BASE_API.js"></script>
    <!-- 导入login.js -->
    <script src="/assets/js/login.js"></script>
</body>
</html>